<include file="Common/header" />
<title>栏目管理</title>
<style>
.norag { border: none !important; font-weight: normal !important }
</style>
</head>
<body>
<nav class="breadcrumb">
  <div class="menu_4">
   
     <a href="" class="active">字段管理</a>
     <a href="{:U('Field/edit',array('mid'=>$mid))}">添加字段</a>
  	 <a href="">预览模型</a>
  </div>
  
  <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a></nav>
</nav>
<div class="pd-20">
  <div class="wrap">
     
    <div class="table_full">
     
    
  <form class="J_ajaxForm" action="" method="post">
  <div class="table_list">
        <table cellpadding="0" cellspacing="0" width="100%" class="table table-hover table-bg">
        <thead>
          <tr>
            <th width="70" style="text-align:center">排序</th>
            <th width="90">字段名</th>
            <th>别名</th>
            <th width="100">字段类型</th>
            <th width="30" style="text-align:center">主表</th> 
            <th width="30" style="text-align:center">必填</th>
            <th width="30" style="text-align:center">搜索</th>
            <th width="30" style="text-align:center">排序</th>
            <th width="30" style="text-align:center">投稿</th>
            <th width="100" style="text-align:center">管理操作</th>
          </tr>
        </thead>
        <tbody class="td-line">
        
        <volist name="list" id="vo" >
        <tr>
            <td style="text-align:center">
            <input name="listorders[{$vo.fieldid}]" type="text" size="3" value="{$vo.listorder}" class="input-text radius btn"></td>
            <td>{$vo.field}</td>
            <td>{$vo.name}</td>
            <td>{$vo.formtype}</td>
            <td style="text-align:center"><font color="blue">√</font></td>
            <td style="text-align:center"><font color="blue">√</font></td>
            <td style="text-align:center"><font color="blue">√</font></td>
            <td style="text-align:center"> <font color="red">╳</font></td>
            <td style="text-align:center"><font color="blue">√</font></td>
            <td style="text-align:center">
            
            <a href="{:U('Field/edit',array('mid'=>$mid,'id'=>$vo['fieldid']))}">修改</a> | 
            <a href="javascript:;" class="getajax_ldh" _href="{:U('Field/dis',array('fid'=>$vo['fieldid'],'dis'=>$vo['disabled']))}">
   <if condition="$vo['disabled']">  <font color="#2771E0"   > 显示 </font> <else /> <font color="#BEBEBE"   > 隐藏 </font> </if></a>
             | 
           <a href="javascript:;" class="getajax_ldh del" msg="确定要删除字段?" _href="{:U('Field/del',array('fid'=>$vo['fieldid']))}"> <font color="#BEBEBE"> 删除</font></a>
                        </td>
  		 </tr>
 		</volist>
          
          
       </tbody>
      </table>
  </div>
  <include file="Common/foot" />

<div style="height:60px;"></div>
<div class="btn_wrap" style=" position:fixed; z-index:999; bottom:0; background:#EBEBEB; width:100%;  ">
      <div class="btn_wrap_pd" style="margin:10px 20px;">
        <button class="btn btn-primary radius " type="submit" style="padding:0 22px">排序</button>
      </div>
    </div>
        
     
      </form>
    </div>
  </div>
</div>
<div style="position:fixed; bottom:0; height:51px;z-index: 99; width:100%; background:#EBEBEB"></div>
<script>
$(function(){
	$(".J_ajaxForm").Validform({
		ajaxPost:true,
		tiptype:function(){},
		callback:function(data){
			if(data.status=="y"){
				layer.msg('更新成功!!',{icon:1,time:1000});
			}
			}
		});
	});

</script>
 	 

</body>
</html>